﻿/*-------------------------------------------------------------------------
* 命名空间: WaferSelectV3.Models/UserModel
* 类       名: UserModel
* 功      能:  TD
* 时      间:  2024-05-22 11:07:33
* 版      本:  V1.0
* 作      者:  Fioman
* 格      言:  Talk is cheap,show me the code ^_^
*-------------------------------------------------------------------------*/
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WaferSelectV3.Common;

namespace WaferSelectV3.Models
{
    public enum RoleType
    {
        操作员,
        管理员,
        工程师
    }

    public class UserModel : BindableBase
    {
        private int _id;

        public int Id
        {
            get { return _id; }
            set
            {
                _id = value;
                RaisePropertyChanged();
            }
        }

        private string? _username;

        public string? Username
        {
            get { return _username; }
            set
            {
                _username = value;
                RaisePropertyChanged();
            }
        }

        private string? _password;

        public string? Password
        {
            get { return _password; }
            set
            {
                _password = value;
                RaisePropertyChanged();
            }
        }

        private int _role;

        public int Role
        {
            get { return _role; }
            set
            {
                _role = value;
                RaisePropertyChanged();
            }
        }

        private string? createBy;

        public string? CreateBy
        {
            get { return createBy; }
            set
            {
                createBy = value;
                RaisePropertyChanged();
            }
        }

        private string? _createTime;

        public string? CreateTime
        {
            get { return _createTime; }
            set
            {
                _createTime = value;
                RaisePropertyChanged();
            }
        }

        private string? _lastLoginTime;

        public string? LastLoginTime
        {
            get { return _lastLoginTime; }
            set
            {
                _lastLoginTime = value;
                RaisePropertyChanged();
            }
        }



    }
}
